package com.tezign.intelligence.mini.dam.aifamilyconsultant.bean;

import com.tezign.intelligence.mini.dam.aifamilyconsultant.constant.CodeInterFace;

/**
 * todo
 *
 * @Author ouyangkang
 * @date 2024/11/17
 */

public enum UserStatusEnum implements CodeInterFace {

	USER_NOT_EXIST("1001", "用户不存在"),

	USER_PASSWORD_ERROR("1002", "密码错误"),

	ERROR("1003", "%s");

	private final String code;
	private String message;

	private UserStatusEnum(String code, String message) {
		this.code = code;
		this.message = message;
	}

	public String getCode() {
		return this.code;
	}

	public String getMessage() {
		return this.message;
	}

	// addErrorMsg
	public UserStatusEnum addErrorMsg(String msg) {
		this.message = msg;
		return this;
	}
}
